//
//  CNWebViewController.m
//  BeeQuick_19
//
//  Created by tanky on 2016/9/23.
//  Copyright © 2016年 CN Team. All rights reserved.
//

#import "CNWebViewController.h"

@interface CNWebViewController ()

@end

@implementation CNWebViewController

+ (instancetype)webViewControllerWithURL:(NSString *)urlString{
    CNWebViewController *vc = [self new];
    UIWebView *webV = [[UIWebView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    //返回的数据 链接内有空格需删除
    NSString *newURLString = [urlString stringByReplacingOccurrencesOfString:@" " withString:@""];
    NSURL *url = [NSURL URLWithString:newURLString];
    NSURLRequest *urlRequest = [NSURLRequest requestWithURL:url];
    [webV loadRequest:urlRequest];
    webV.backgroundColor = [UIColor colorWithRed:255 green:210 blue:43];
    webV.opaque = NO;
    [vc.view addSubview:webV];
    return vc;
}

- (void)viewWillAppear:(BOOL)animated{
    self.tabBarController.tabBar.hidden = YES;
}

@end
